package com.nanyang.tms.api.dto.request.ticket;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class TicketUpdateRequest extends ApiRequest {

    private static final long serialVersionUID = 6231222805959650724L;
    @JsonIgnore
    private String pin;
    /**
     * 单号种类编码
     */
    @NotEmpty(message = "单号种类编码能为空")
    @Length(max = 32, message = "ticketTypeCode长度需小于32个字符")
    private String ticketTypeCode;
    /**
     * 基础种类编码
     */
    @NotEmpty(message = "基础种类编码不能为空")
    @Length(max = 20, message = "baseTypeCode长度需小于20个字符")
    private String baseTypeCode;

    /**
     * 基础种类名称
     */
    @NotEmpty(message = "基础种类名称不能为空")
    @Length(max = 30, message = "baseTypeName长度需小于30个字符")
    private String baseTypeName;

    /**
     * 单号种类名称
     */
    @NotEmpty(message = "单号种类名称不能为空")
    @Length(max = 50, message = "ticketTypeName长度需小于50个字符")
    private String ticketTypeName;

    /**
     * 单号校验规则
     */
    @NotEmpty(message = "单号校验规则不能为空")
    @Length(max = 200, message = "ticketRule1长度需小于200个字符")
    private String ticketRule;
    @Override
    public void requestCheck() {

    }
}
